
import './MiaoSha.css'
import React from 'react'
import { inject,observer } from "mobx-react";
// import {Table,Button} from 'antd'
import { NavLink } from 'react-router-dom';
// import { inject, observer } from "mobx-react";
import { Table, Button } from 'antd'
// import { NavLink,Route } from 'react-router-dom';

import { Menu } from 'antd';
const { SubMenu } = Menu;

@inject('updateMiaoSha')
@observer
class MiaoSha extends React.Component {

  render() {
    let insertTab = ()=>{
      this.props.updateMiaoSha.insertStart('insert',false)
    }
    return (
      <div className="miaoSha">

        <Menu
                  className='nav'
                  mode='horizontal'
                  style={{background:'transparent'}}     
                >
                   <Menu.Item key='1'>
                     <NavLink to='/Home/cuXiao/MiaoSha/XianShiMiaoSha'>限时秒杀</NavLink>
                     </Menu.Item>   
                     <Menu.Item key='2'>
                     <NavLink to='/Home/cuXiao/MiaoSha/MiaoShaInsert' onClick={insertTab}>添加秒杀</NavLink>
                     </Menu.Item>                      
                </Menu>

            <div>
              {this.props.children}
            </div>
      </div>
    )
  }
}

export default MiaoSha
